import React, { useEffect } from "react";

import importComponent from './importComponent';

// const App1 = React.lazy(() => import('app1/App'));

const App1 = React.lazy(() => {
    const Module = importComponent('app1', 'App');
    console.dir(Module);
    return Module;
});

export default function Index() {

    return <div>
        <div>main</div>
        <React.Suspense fallback="Loading Material UI Dialog...">
            <App1 />
        </React.Suspense>
    </div>
}
